﻿<Window x:Class="WpfPdfReader.WindowAddBookmark"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="添加书签" Height="320" Width="450" Background="{StaticResource winBackground}" WindowStyle="ToolWindow" WindowStartupLocation="CenterScreen">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="auto"/>
            <RowDefinition Height="*"/>
            
            <RowDefinition Height="50"/>
        </Grid.RowDefinitions>
        <DockPanel Grid.Row="0" LastChildFill="True" Margin="3"> 
            <TextBlock Text="书签名称:" VerticalAlignment="Center" FontFamily="Arial" FontSize="18" Foreground="White"/>
            <TextBox Name="bookMarkName" FontFamily="Arial" FontSize="18" VerticalAlignment="Center" Text="" TextChanged="bookMarkName_TextChanged"/>
        </DockPanel>
        <DockPanel Grid.Row="1" LastChildFill="True" Margin="3">
            <TextBlock Text="读书笔记:"  FontFamily="Arial" FontSize="18" Foreground="White"/>
            <TextBox TextWrapping="Wrap" AcceptsReturn="True" Name="note" FontFamily="Arial" FontSize="18"/>
        </DockPanel>
        <Border Grid.Row="2" BorderBrush="White" BorderThickness="0,1,0,0"/>
        <Canvas Grid.Row="2">        
            <Label Style="{StaticResource ButtonLabelStyle}" Canvas.Right="120" Canvas.Top="5" Name="btnOk"  Content="确定" IsEnabled="False" MouseUp="btnOk_MouseUp"/>
            <Label Style="{StaticResource ButtonLabelStyle}"  Name="btnCancel" Canvas.Right="40" Canvas.Top="5"  Content="取消" MouseUp="btnCancel_MouseUp"/>
        </Canvas>
    </Grid>
</Window>
